/**
 * @author liuxin
 * @e-mail lxtobe5@gmail.com
 * @update 2011.11.19
 * @prompt If you find my mistake, please contact with me via my e-mail.
 */
package DesignPattern_sample.DecoratorPattern
{
	public class Decorator extends DecorateObject
	{
		protected var _component:DecorateObject;
		
		public function setDecorateObject(component:DecorateObject):void
		{
			_component = component;
		}
		
		override public function decorate():void
		{
			if(_component != null)
			{
				_component.decorate();
			}
		}
	}
}